package net.maku.member.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.TransPojo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import net.maku.framework.common.excel.LocalDateTimeConverter;
import net.maku.framework.common.utils.DateUtils;
import net.maku.member.entity.MemberDeptEntity;
import net.maku.system.entity.SysOrgEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
* 会员信息
*
* @author 阿沐 babamu@126.com
* @since 1.0.0 2025-03-15
*/
@Data
@Schema(description = "会员信息")
public class MemberUserExcelVO implements Serializable, TransPojo {
	private static final long serialVersionUID = 1L;

	@ExcelIgnore
	private Long id;

	@ExcelProperty(value = "姓名")
	private String realName;

	@ExcelIgnore
	@Trans(type = TransType.SIMPLE, target = SysOrgEntity.class, fields = "name", ref = "orgName")
	private Long orgId;

	@ExcelProperty(value = "工会名称")
	private String orgName;

//	@ExcelIgnore
//	@Schema(description = "所在部门")
//	@Trans(type = TransType.SIMPLE, target = MemberDeptEntity.class, fields = "deptName", ref = "deptName")
//	private Long deptId;
//
//	@ExcelProperty(value = "所在部门")
//	private String deptName;

	@ExcelIgnore
	@Trans(type = TransType.DICTIONARY, key = "user_gender", ref = "genderLabel")
	private Integer gender;

	@ExcelProperty(value = "性别")
	private String genderLabel;

	@ExcelProperty(value = "手机号")
	private String mobile;

	@ExcelIgnore
	@Schema(description = "民族")
	@Trans(type = TransType.DICTIONARY, key = "nation_type", ref = "nationLabel")
	private Integer nation;

	@ExcelProperty(value = "民族")
	private String nationLabel;

	@ExcelProperty(value = "出生年月", converter = LocalDateTimeConverter.class)
	private LocalDateTime birthday;

	@ExcelIgnore
	@Schema(description = "政治面貌")
	@Trans(type = TransType.DICTIONARY, key = "political_status", ref = "politicalLabel")
	private Integer politicalStatus;

	@ExcelProperty(value = "政治面貌")
	private String politicalLabel;

	@ExcelIgnore
	@Schema(description = "学历")
	@Trans(type = TransType.DICTIONARY, key = "educational_background", ref = "educationalLabel")
	private Integer educationalBackground;

	@ExcelProperty(value = "学历")
	private String educationalLabel;

	@ExcelIgnore
	@Schema(description = "工会职务")
	@Trans(type = TransType.DICTIONARY, key = "tradeUnion_office", ref = "tradeUnionLabel")
	private Integer tradeUnionOffice;

	@ExcelIgnore
	@ExcelProperty(value = "工会职务")
	private String tradeUnionLabel;

	@ExcelIgnore
	@ExcelProperty(value = "职称等级")
	@Trans(type = TransType.DICTIONARY, key = "tradeUnion_office", ref = "professionalGradeLabel")
	private Integer professionalGrade;

	@ExcelProperty(value = "职称等级")
	private String professionalGradeLabel;

	@ExcelProperty(value = "职称名称")
	private String professionalName;

	@ExcelProperty(value = "文体特长")
	private String stylisticSpecialty;

	@Schema(description = "状态  0：停用   1：正常")
	@ExcelIgnore
	@Trans(type = TransType.DICTIONARY, key = "user_status", ref = "statusLabel")
	private Integer status;

	@ExcelProperty(value = "状态")
	private String statusLabel;

	@ExcelProperty(value = "积分")
	private Double points;

}